﻿@{
    ViewBag.Title = "Role Listing";
    Layout = "~/Views/Shared/_Layout.cshtml";
}

<link href="~/Content/AdminTemplate/jquery-ui.css" rel="stylesheet" />

@section Scripts {

<script src="~/Scripts/RoleJsRole.js"></script>
<link href="~/Content/AdminTemplate/css/bootstrap.css" rel="stylesheet" />

    }




@section menuAdmin{

    <link rel="stylesheet" href="~/Content/AdminTemplate/assets/css/styles.css" />
    <nav>
        <ul class="fancyNav">

            <li id="home"><a href="/Account/RoleIndex" class="homeIcon">Home</a></li>

            <li id="news"><a href="#news">News</a></li>
            <li id="about">@Html.ActionLink("userProfile", "About", "Account")</li>
            <li id="services"><a href="#services">Services</a></li>
            <li id="contact"><a href="#contact">Contact us</a></li>
        </ul>
    </nav>





}
<span id="responseSuccess" style="color: green"></span>






    <table style="width: 1500px;" cellpadding="0" cellspacing="0">
        <tr>
            <td colspan="2" style="background-color: rgba(0, 0, 0, 0.15);"></td>
        </tr>


        <td style="width: 100px; vertical-align: top;">
            <b>Menu</b><br>
           <span id="rolecreaterole" onblur="validate()"> <img src="~/Images/role.png" id="Create_Role" /></span>
            <br>
   @*      <input type="button" value="Role"   id="RoleAddTUser" />*@  <img src="~/Images/roletouser.png" id="RoleAddTUser" /><br>
        </td>
        <td style="background-color: #FFF; height: 200px; width: 400px; vertical-align: top;">

            <table class="mytable">
                <tr>
                    <td>
                        <h1 style="color: maroon">Role</h1>
                    </td>
                    <td>
                        <h1 style="color: maroon">Actions</h1>
                    </td>







                    @foreach (string s in Model)
                    {
  
                        <tr>
                            <td>
                                @s
                            </td>
                            <td>
                              <img src="~/Images/delete.png"  onclick="DeleteRole('@s')" />
                            </td>

                        </tr>
               
      
                    }
            </table>

        </td>

        <tr>
            <td colspan="2" style="background-color: #FFA500; text-align: center;"></td>
        </tr>
    </table>




<div id="RoleCreate">
</div>


<div id="addtouser">
</div>





